Text File | 1994-12-13 | 956 b | 20 lines | [TEXT/ttxt]
The Online Insultant Pro project is a version of the Online-Insultant sample project that has been upgraded to use the framework for its user interface.
This project also has fun playing around with the Text-to-Speech capabilities of the Speech Manager and serves as a demonstration of how to call some of the Macintosh Toolbox interfaces.
The information source for the insult generation is some sentence fragments that are said to come from Shakespeare.
Explanation of files and source containers in the project:
Setup - library and module definitions.
Engine - random number generator and insult generator.
Picture - windows and drawing insulting text into them. Also the idle method that initiates the speech.
Menus - menu support.
Sound - code to call the Speech Manager to read an insult out loud.
Application - standard application stuff required by the framework. Also code to alert the user if the Speech Manager has not been installed.